Directed Replacement

نویسنده

  • Lauri Karttunen
چکیده

This paper introduces to the nite-state calculus a family of directed replace operators. In contrast to the simple replace expression, UPPER -> LOWER, de ned in Karttunen (1995), the new directed version, UPPER @-> LOWER, yields an unambiguous transducer if the lower language consists of a single string. It transduces the input string from left to right, making only the longest possible replacement at each point. A new type of replacement expression, UPPER @-> PREFIX ... SUFFIX, yields a transducer that inserts text around strings that are instances of UPPER. The symbol ... denotes the matching part of the input which itself remains unchanged. PREFIX and SUFFIX are regular expressions describing the insertions. Expressions of the type UPPER @-> PREFIX ... SUFFIXmay be used to compose a deterministic parser for a \local grammar" in the sense of Gross (1989). Other useful applications of directed replacement include tokenization and ltering of text streams.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Replacement of Serine363 and Serine375 Codons by Alanine in Rat μ-Opioid Receptor cDNA

     The aim of this study was to use site directed mutagenesis technique to construct a vector in which serine363 and serine375 residues of the COOH-terminal portion of the μ-opioid receptor (MOR) were substituted by alanine. These constructs are essential in studying G-protein coupled receptor kinase-mediated MOR desensiti-zation. The nested PCR carried out for conversio...

متن کامل

Replacement Paths via Row Minima of Concise Matrices

Matrix M is k-concise if the finite entries of each column of M consist of k or fewer intervals of identical numbers. We give an O(n + m)-time algorithm to compute the row minima of any O(1)-concise n×m matrix. Our algorithm yields the first O(n+m)-time reductions from the replacement-paths problem on an n-node m-edge undirected graph (respectively, directed acyclic graph) to the single-source ...

متن کامل

Erratum to "Vickrey Pricing and Shortest Paths: What is an Edge Worth?"

A naı̈ve algorithm for the replacement paths problem runs in O(n(m+n logn)) time, executing the single-source shortest path algorithm up to n times. In our paper [3], we claimed that the replacement paths problem can be solved inO(m+n logn) time for both undirected and directed graphs. However, there is a flaw that invalidates the algorithm for directed graphs. (The algorithm for undirected grap...

متن کامل

Multi-Level Description Directed Generation

The principal deficit of the direct replacement approach is its difficulties with 8ramatar, i.e. the awkwardness of maintaining an adequate representation of the grnmm~tical context, or of carrying out grammatically mediated text-level actions such as producing the correct syntactic form for an embedded clause. In other respects, however. the message-directed control flow that drives direct rep...

متن کامل

A Cache Model of the Block Correlations Directed Cache Replacement Algorithm

This paper proposes a cache model of the Block Correlations Directed cache replacement algorithm (BCD). Since the predication success rate of accesses decides the BCD’s hit ratio, the cache model analysis the utilization of the cache space improved by the correct predications and the penalty incurred by incorrect predications to estimate the hit rate of BCD. The model can also optimize the para...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996